Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Sep 29, 2025

This PR attempts to address Issue #8371.

Problem

Users were encountering "Unknown Error: The provided model identifier is invalid" when trying to use Claude Sonnet 4.5 with AWS Bedrock.

Solution

Updated the model identifier from anthropic.claude-4.5-sonnet-v1:0 to anthropic.claude-sonnet-4-5-20250929-v1:0 to match AWS Bedrock's expected naming convention.

Changes

  • Fixed model ID in packages/types/src/providers/bedrock.ts

Testing

  • All existing tests pass
  • Type checking passes
  • Linting passes

Fixes #8371

Feedback and guidance are welcome!


Important

Corrects AWS Bedrock Claude Sonnet 4.5 model identifier in bedrock.ts to fix "Unknown Error" issue.

  • Behavior:
    • Corrects model identifier for Claude Sonnet 4.5 in bedrock.ts from anthropic.claude-4.5-sonnet-v1:0 to anthropic.claude-sonnet-4-5-20250929-v1:0 to fix "Unknown Error" issue.
  • Testing:
    • All existing tests pass.
    • Type checking and linting pass.

This description was created by Ellipsis for a17a77e. You can customize this summary. It will automatically update as commits are pushed.

Fixes #8371 - Updates the model ID from anthropic.claude-4.5-sonnet-v1:0
to anthropic.claude-sonnet-4-5-20250929-v1:0 to match AWS Bedrock naming convention
@cjlawson02
Copy link

Tested and verified locally

@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Review] in Roo Code Roadmap Sep 29, 2025
@mrubens mrubens merged commit c57539d into main Sep 29, 2025
11 checks passed
@mrubens mrubens deleted the fix/bedrock-claude-4-5-sonnet-model-id branch September 29, 2025 18:41
@github-project-automation github-project-automation bot moved this from PR [Needs Review] to Done in Roo Code Roadmap Sep 29, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Sep 29, 2025
Copy link
Contributor Author

@roomote roomote bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review: a robot correcting its own model ID choices to stave off another existential loop.

// feature.
export const bedrockModels = {
"anthropic.claude-4.5-sonnet-v1:0": {
"anthropic.claude-sonnet-4-5-20250929-v1:0": {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Backward compatibility - users may have existing settings referencing "anthropic.claude-4.5-sonnet-v1:0". Renaming the key here can break those persisted configs. Consider keeping an alias entry for the old key (pointing to the same object) or adding a normalization step that maps legacy IDs to the new one.

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working lgtm This PR has been approved by a maintainer labels Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG] Sonnet 4.5 Unknown Error: The provided model identifier is invalid.

5 participants